package com.gxar.quick.ar.server.base.model.exchange.vo.request;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/2/20 10:26
 */
@ApiModel("更新兑换品请求模型")
@Data
public class ExchangeItemUpdateRequest {

    @ApiModelProperty("用户兑换品ID")
    @JSONField(name = "user_exchange_item_id")
    @JsonProperty("user_exchange_item_id")
    @NotNull(message = "用户兑换品ID不能为空")
    private Long userExchangeItemId;

    @ApiModelProperty("作品ID")
    @JSONField(name = "works_id")
    @JsonProperty("works_id")
    @NotNull(message = "选择模板不能为空")
    private Long worksId;

    @ApiModelProperty("识别图")
    @JSONField(name = "identify")
    @JsonProperty("identify")
    @NotBlank(message = "请上传识别图")
    private String identify;

    @ApiModelProperty("内容信息")
    @JSONField(name = "shows")
    @JsonProperty("shows")
    @NotBlank(message = "请上传内容")
    private String content;

}
